echo 'export M2_HOME=/var/jenkins_home/apache-maven-3.5.4
export PATH=$PATH:$M2_HOME/bin
' >> /etc/profile


#echo 'source /etc/profile' >> ~/.bashrc